package adv10;

import java.io.Serializable;

public class Product implements Serializable {
	private String itemno,name,factoryaddr,unit;
	private int stockcount;
	private double price;
	private boolean discount;
	public Product(){} 
	public Product(String itemno, String name, String factoryaddr, String unit,
			int stockcount, double price, boolean discount) {
		super();
		this.itemno = itemno;
		this.name = name;
		this.factoryaddr = factoryaddr;
		this.unit = unit;
		this.stockcount = stockcount;
		this.price = price;
		this.discount = discount;
	}

	public String getItemno() {
		return itemno;
	}
	public void setItemno(String itemno) {
		this.itemno = itemno;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getFactoryaddr() {
		return factoryaddr;
	}
	public void setFactoryaddr(String factoryaddr) {
		this.factoryaddr = factoryaddr;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public int getStockcount() {
		return stockcount;
	}
	public void setStockcount(int stockcount) {
		this.stockcount = stockcount;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public boolean isDiscount() {
		return discount;
	}
	public void setDiscount(boolean discount) {
		this.discount = discount;
	}
	
}
